import router from '@/router'
import store from '@/store'
//进度条
import NProgress from 'nprogress' ;
import 'nprogress/nprogress.css';

router.beforeEach((to,form,next)=>{
    NProgress.start()
    next()
})
router.afterEach((to,form,next) => {
    localStorage.setItem("croumName", to.name)  // 设置当前的路由名称
    store.commit('SET_PATHNAME',to.name)
    NProgress.done();
});